<template>
	<view class="detail-view">
		<view class="top-bar">
			<uni-navbar :fixed="true" :back="true" color="#fff" title="内容详情"></uni-navbar>
		</view>


		<view class="formView">
			<view class="formViewItem">
				<view class="formViewItemLeft">
					标题
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.title ? issueInfo.title : '无' }}
				</view>
			</view>

			<view class="formViewItem"> 
				<view class="formViewItemLeft">
					议题来源
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.isSourceName ? issueInfo.isSourceName : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题提交时间
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.submitTime ? issueInfo.submitTime : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题分类
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.classifyName ? issueInfo.classifyName : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题分类明细
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.classifyDetailName ? issueInfo.classifyDetailName : '无' }}
				</view>
			</view>


			<u-gap height="20" bgColor="#F6F7FB"></u-gap>


			<view class="formViewItem">
				<view class="formViewItemLeft">
					提交人
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.submitName ? issueInfo.submitName : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					联系电话
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.phone ? issueInfo.phone : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					所属代表之家
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.dbzjDeptName ? issueInfo.dbzjDeptName : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					定位地址
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.addr ? issueInfo.addr : '无' }}
				</view>
			</view>
			
			<view class="formViewItem">
				<view class="formViewItemLeft">
					详细位置
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.addrDetail ? issueInfo.addrDetail : '无' }}
				</view>
			</view>
			
			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题负责人
				</view>
				<view class="formViewItemRight">
					<text v-for="(item,index) of issueChargePepList">{{ index == '0' ? item.userName : ',' + item.userName }}</text>
				</view>
			</view>
			
			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题参与代表
				</view>
				<view class="formViewItemRight" v-if="issuePartPepList.length !== 0">
					<text v-for="(item,index) of issuePartPepList">{{ index == '0' ? item.userName : ',' + item.userName}}</text>
				</view>
				
				<view class="formViewItemRight" v-else>
					<text>无</text>
				</view>
			</view>


			<view class="textA">
				{{ issueInfo.content ? issueInfo.content : '无' }}
			</view>

			<view style="background-color: #FFFFFF;width: 100%;padding: 20upx 28upx;" class="">
				<view class="fileList2">
					<view class="fileList2Item" v-for="(item,index) of fileList_Info"
						@tap="$showLine(item)">
						<view class="fileList2ItemLeft">
							<image src="@/pagesB/static/doc.png" mode=""></image>
						</view>
						<view class="fileList2ItemCenter">
							<view class="">
								{{ item.name }}
							</view>

							<view class="" style="display: flex;align-items: center;">
								<view class="" style="flex: 1;color: #999999;font-size: 12px;padding-top: 10upx;">
									{{ item.size }}
								</view>

								<view class="" style="flex: 1;text-align: right;color: #0077FF;font-size: 12px;">
									预览
								</view>
							</view>
						</view>
						<!-- <view class="fileList2ItemRight" @tap="toDelete(index,'file')">
							预览
						</view> -->
					</view>
				</view>
			</view>

			<u-gap height="20" bgColor="#F6F7FB"></u-gap>

			<view class="histList">
				<view class="histListItem">
					<view class="histListItemTop" @tap="ytxsShow = !ytxsShow">
						<view class="intitle histListItemTopLeft">
							议题审查
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="!ytxsShow ? 'arrow-down' : 'arrow-up'" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter" v-if="ytxsShow">

						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查主体
							</view>
							<view class="formViewItemRight">
								{{ issueAudit.auditUserName }}
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查时间
							</view>
							<view class="formViewItemRight">
								{{ issueAudit.auditTime }}
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查结果
							</view>
							<view class="formViewItemRight">
								{{ issueAudit.auditStatus == '1' ? '通过' : '未通过' }}
							</view>
						</view>
						
						
						<view class="formViewItem" v-if="issueAudit.auditStatus !== '1'">
							<view class="formViewItemLeft">
								退回理由
							</view>
							<view class="formViewItemRight">
								{{ issueAudit.auditOpinion ? issueAudit.auditOpinion : '无' }}
							</view>
						</view>
					</view>
				</view>
			</view>
			
			<u-gap height="20" bgColor="#F6F7FB"></u-gap>
			
			
			<view class="histList">
				<view class="histListItem">
					<view class="histListItemTop" @tap="ytgkShow = !ytgkShow">
						<view class="intitle histListItemTopLeft">
							码上留言
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="!ytgkShow ? 'arrow-down' : 'arrow-up'" color="#000000" size="28"></u-icon>
						</view>
					</view>
			
					<view class="histListItemCenter" v-if="ytgkShow">
			
						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查主体
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.auditUserName }}
							</view>
						</view>
			
						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查时间
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.auditTime }}
							</view>
						</view>
			
						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查结果
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.auditStatus == '1' ? '通过' : '未通过' }}
							</view>
						</view>
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								选择公开日期
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.openStart + '至' + msIssueOpen.openEnd }}
							</view>
						</view>
						
						<!-- <view class="formViewItem">
							<view class="formViewItemLeft">
								选择公开范围
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.openDbzjName }}
							</view>
						</view> -->
						
						
					</view>

				</view>
			</view>
			
			<u-gap height="20" bgColor="#F6F7FB"></u-gap>
			
			<view class="histList">
				<view class="histListItem">
					<view class="histListItemTop" @tap="sqdyShow = !sqdyShow">
						<view class="intitle histListItemTopLeft">
							议前调研
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="!sqdyShow ? 'arrow-down' : 'arrow-up'" color="#000000" size="28"></u-icon>
						</view>
					</view>
			
					<view class="histListItemCenter" v-if="sqdyShow">
			
						<view class="formViewItem">
							<view class="formViewItemLeft">
								选择调研日期
							</view>
							<view class="formViewItemRight">
								{{ msIssueSurvey.surveyStart + '至' + msIssueSurvey.surveyEnd }}
							</view>
						</view>
			
						<!-- <view class="formViewItem">
							<view class="formViewItemLeft">
								调研人员
							</view>
							<view class="formViewItemRight">
								<text v-for="(item,index) of msIssueSurvey.msIssueCtmebList">{{ index == 0 ? item.cyMebName : ',' + item.cyMebName}}</text>  
							</view>
						</view> -->
					</view>
				</view>
			</view>
			
			<u-gap height="20" bgColor="#F6F7FB"></u-gap>
			
			<view class="histList" v-if="msIssueSurvey && msIssueSurvey.msIssueSurveyResultList" v-for="(item,index) of msIssueSurvey.msIssueSurveyResultList">
				<view class="histListItem">
					<view class="histListItemTop" @tap="dycgscShow == item.id ? dycgscShow = '' : dycgscShow = item.id">
						<view class="intitle histListItemTopLeft">
							调研成果上传记录
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="dycgscShow == item.id ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
						</view>
					</view>
			
					<view class="histListItemCenter" v-if="dycgscShow == item.id">
						<!-- <view class="formViewItem">
							<view class="formViewItemLeft">
								调研人员
							</view>
							<view class="formViewItemRight">
								{{item.submitName}}
							</view>
						</view> -->
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研时间
							</view>
							<view class="formViewItemRight">
								{{item.submitTime}}
							</view>
						</view>
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研成果
							</view>
							<view class="formViewItemRight">
								{{item.surveyResult}}
							</view>
						</view>
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研成果附件
							</view>
							<view class="formViewItemRight">
							</view>
						</view>
						
						
						<view style="background-color: #FFFFFF;width: 100%;padding: 20upx 28upx;" class="">
							<view class="fileList2">
								<view class="fileList2Item" v-for="(fileItem,fileIndex) of item.fileRepositorylist"
									@tap="$showLine(fileItem)">
									<view class="fileList2ItemLeft">
										<image src="@/pagesB/static/doc.png" mode=""></image>
									</view>
									<view class="fileList2ItemCenter">
										<view class="">
											{{ fileItem.name }}
										</view>
						
										<view class="" style="display: flex;align-items: center;">
											<view class="" style="flex: 1;color: #999999;font-size: 12px;padding-top: 10upx;">
												{{ fileItem.size }}
											</view>
						
											<view class="" style="flex: 1;text-align: right;color: #0077FF;font-size: 12px;">
												预览
											</view>
										</view>
									</view>
									<!-- <view class="fileList2ItemRight" @tap="toDelete(index,'file')">
										预览
									</view> -->
								</view>
							</view>
						</view>
						
					</view>
				</view>
				<u-gap  height="20" bgColor="#F6F7FB"></u-gap>
			</view>

			<!-- <u-gap height="20" bgColor="#F6F7FB"></u-gap> -->
			
			<view class="histList" >
			<view class="histListItem" v-for="(item,index) of msIssueConsult.msIssueConResultList" :key="index">
				<view class="histListItemTop" @tap="msystype == item.id ? msystype = '' : msystype = item.id">
					<view class="intitle histListItemTopLeft">
						码上议事
					</view>
					<view class="histListItemTopRight">
						<u-icon :name="msystype == item.id ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
					</view>
				</view>
			
				<view class="histListItemCenter" v-if="msystype == item.id">
			
					<view class="formViewItem" v-if="index == '0'">
						<view class="formViewItemLeft">
							议事日期
						</view>
						<view class="formViewItemRight">
							{{ msIssueConsult.conTime }}
						</view>
					</view>
			
					<view class="formViewItem" v-if="index == '0'">
						<view class="formViewItemLeft">
							议事地点
						</view>
						<view class="formViewItemRight">
							{{ msIssueConsult.conPlace }}
						</view>
					</view>
			
					<!-- <view class="formViewItem">
						<view class="formViewItemLeft">
							议事人员
						</view>
						<view class="formViewItemRight">
							{{ item.submitName }}
						</view>
					</view> -->
					
					<view class="formViewItem">
						<view class="formViewItemLeft">
							议事时间
						</view>
						<view class="formViewItemRight">
							{{ item.submitTime }}
						</view>
					</view>
					
					<view class="formViewItem">
						<view class="formViewItemLeft">
							议事成果
						</view>
						<view class="formViewItemRight">
							{{ item.conResult }}
						</view>
					</view>
			
			
					<view style="background-color: #FFFFFF;width: 100%;padding: 20upx 28upx;" class="">
						<view class="fileList2">
							<view class="fileList2Item" v-for="(fileItem,fileIndex) of item.fileRepositorylist"
								@tap="$showLine(fileItem)">
								<view class="fileList2ItemLeft">
									<image src="@/pagesB/static/doc.png" mode=""></image>
								</view>
								<view class="fileList2ItemCenter">
									<view class="">
										{{ fileItem.name }}
									</view>
					
									<view class="" style="display: flex;align-items: center;">
										<view class="" style="flex: 1;color: #999999;font-size: 12px;padding-top: 10upx;">
											{{ fileItem.size }}
										</view>
					
										<view class="" style="flex: 1;text-align: right;color: #0077FF;font-size: 12px;">
											预览
										</view>
									</view>
								</view>
								<!-- <view class="fileList2ItemRight" @tap="toDelete(index,'file')">
									预览
								</view> -->
							</view>
						</view>
					</view>
					
			
					
				</view>
			
				<u-gap height="20" bgColor="#F6F7FB"></u-gap>
			</view>
			
			</view>
			
			
			<view class="histListEdit" >
				<view class="histListItem" v-if="type == 'ksmsxs'">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							码上议事
						</view>
						<view class="histListItemTopRight">
							<!-- <u-icon name="arrow-down" color="#000000" size="28"></u-icon> -->
						</view>
					</view>

					<view class="histListItemCenter">
					
											<view class="formViewItem">
												<view class="formViewItemLeft2">
													码上议事时间<text class="" style="color: red;">*</text>
												</view>
												<view class="formViewItemRight">
													<view class="">
														<date-time-picker placeholder="请选择" fields="day" @change="timeChange($event, 'openStart','msxs')">
														</date-time-picker>
													</view>
												</view>
											</view>
					
											<!-- <view class="formViewItem">
												<view class="formViewItemLeft2">
													码上议事人员<text class="" style="color: red;">*</text>
												</view>
												<view class="formViewItemRight">
													<view class="" @tap="showPicker">
														<text style="font-size: 17px;color: #999999;">请点击选择</text>
														<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
														</u-icon>
													</view>
												</view>
											</view> -->
											
											<view class="formViewItem">
												<view class="formViewItemLeft2">
													码上议事地点<text class="" style="color: red;">*</text>
												</view>
												<view class="formViewItemRight">
													<u-input v-model="ksmsxsQuery.issueConsult.conPlace" type="text" placeholder="请输入码上议事地点" />
													
													<!-- <view class="" @tap="getLoction">
														<text @tap="getLoction" style="font-size: 17px;color: #999999;">请点击选择</text>
														<u-icon @tap="getLoction" style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
														</u-icon>
													</view> -->
												</view>
											</view>
										</view>
					
					
					<view class="fiexd-btm">
						<u-button class="form-btn" type="error" @tap="ksmsxsBtn">提交</u-button>
					</view>
				</view>
				
				
				
				<view class="histListItem" v-if="type == 'scxscg'">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							码上议事
						</view>
						<view class="histListItemTopRight">
							<!-- <u-icon name="arrow-down" color="#000000" size="28"></u-icon> -->
						</view>
					</view>
				
					<view class="histListItemCenter">
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查主体
							</view>
							<view class="formViewItemRight">
								{{ msIssueConsult.conPlace }}
							</view>
						</view>
								
						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查时间
							</view>
							<view class="formViewItemRight">
								{{ msIssueConsult.conTime }}
							</view>
						</view>
								
						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查结果
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.delFlag == '1' ? '通过' : '未通过' }}
							</view>
						</view>
						
						
				
						<view class="formViewItem2">
							<view class="formViewItemLeft2">
								码上议事成果<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<u-form-item class="form-item border-none" label="" labelPosition="top" prop="contact">
										<u-input inputAlign="left" v-model="scxscgQuery.consultResult.conResult" type="textarea" placeholder="请输入码上议事成果"
											:clearable="false" :height="160" :maxlength="-1" />
									</u-form-item>
								</view>
							</view>
						</view>
				
						<u-form-item class="form-item" labelPosition="top" style="padding: 0 40upx;">
							<uni-file-upload @filePush="filePush" :type="['image']" :limit="10"></uni-file-upload>
						</u-form-item>
					</view>
					
					
					<view class="fiexd-btm">
						<u-button class="form-btn" type="error" @tap="scxscgBtn">提交</u-button>
					</view>
				</view>
				
				
				
				<view class="histList" v-if="msIssueConsult && msIssueConsult.msIssueConHandle.id && type !== 'scxscg'">
					<view class="histListItem">
						<view class="histListItemTop" @tap="cgjbShow = !cgjbShow ">
							<view class="intitle histListItemTopLeft">
								方案办理
							</view>
							<view class="histListItemTopRight">
								<u-icon :name="cgjbShow ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
							</view>
						</view>
				
						<view class="histListItemCenter" v-if="cgjbShow">
							<view class="formViewItem">
								<view class="formViewItemLeft">
									办理方式
								</view>
								<view class="formViewItemRight">
									{{msIssueConsult.msIssueConHandle.hanTypeName}}
								</view>
							</view>
							
							<view class="formViewItem">
								<view class="formViewItemLeft">
									办理时间
								</view>
								<view class="formViewItemRight">
									{{msIssueConsult.msIssueConHandle.submitTime}}
								</view>
							</view>
							
							
							<view class="formViewItem">
								<view class="formViewItemLeft">
									办理结果
								</view>
								<view class="formViewItemRight">
									{{msIssueConsult.msIssueConHandle.hanResult}}
								</view>
							</view>
							
							<view style="background-color: #FFFFFF;width: 100%;padding: 20upx 28upx;" class="">
								<view class="fileList2">
									<view class="fileList2Item" v-for="(fileItem,fileIndex) of msIssueConsult.msIssueConHandle.fileRepositorylist"
										@tap="$showLine(fileItem)">
										<view class="fileList2ItemLeft">
											<image src="@/pagesB/static/doc.png" mode=""></image>
										</view>
										<view class="fileList2ItemCenter">
											<view class="">
												{{ fileItem.name }}
											</view>
							
											<view class="" style="display: flex;align-items: center;">
												<view class="" style="flex: 1;color: #999999;font-size: 12px;padding-top: 10upx;">
													{{ fileItem.size }}
												</view>
							
												<view class="" style="flex: 1;text-align: right;color: #0077FF;font-size: 12px;">
													预览
												</view>
											</view>
										</view>
										<!-- <view class="fileList2ItemRight" @tap="toDelete(index,'file')">
											预览
										</view> -->
									</view>
								</view>
							</view>
							
							
						</view>
					</view>
					
					<u-gap  height="20" bgColor="#F6F7FB"></u-gap>
				</view>
				
				
				<view class="histList" v-if="msIssueDisclosure && msIssueDisclosure.id && type !== 'scxscg'">
					<view class="histListItem">
						<view class="histListItemTop" @tap="jggkShow = !jggkShow ">
							<view class="intitle histListItemTopLeft">
								结果公开
							</view>
							<view class="histListItemTopRight">
								<u-icon :name="jggkShow ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
							</view>
						</view>
				
						<view class="histListItemCenter" v-if="jggkShow">
							<view class="formViewItem">
								<view class="formViewItemLeft">
									结果公开日期
								</view>
								<view class="formViewItemRight">
									{{ msIssueDisclosure.dceStart + '至' + msIssueDisclosure.dceEnd }}
								</view>
							</view>
						</view>
					</view>
				</view>


				<!-- <view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							码上议事
						</view>
						<view class="histListItemTopRight">
							<u-icon name="arrow-down" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter">

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								议事时间<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #999999;">请点击选择</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								议事人员<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<image src="../../../static/tjry.png" mode=""></image>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								议事地点<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #999999;">请点击选择</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view>
					</view>
				</view> -->


				<!-- <view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							码上公开
						</view>
						<view class="histListItemTopRight">
							<u-icon name="arrow-down" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter">

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								开始公开时间<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #999999;">请点击选择</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								结束公开时间<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #999999;">请点击选择</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view>
					</view>
				</view> -->

				<!-- <view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							议前调研
						</view>
						<view class="histListItemTopRight">
							<u-icon name="arrow-down" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter">

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								调研时间<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #999999;">请点击选择</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								调研人员<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<image src="../../../static/tjry.png" mode=""></image>
							</view>
						</view>

					</view>
				</view> -->


				<!-- <view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							调研成果上传记录
						</view>
						<view class="histListItemTopRight">
							<u-icon name="arrow-down" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter">

						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研人员
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #000000;">请点击选择</text>
								</view>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研时间
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #000000;">请点击选择</text>
								</view>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研成果
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #000000;">请点击选择</text>
								</view>
							</view>
						</view>

						<view style="background-color: #FFFFFF;width: 100%;padding: 20upx 28upx;" class="">
							<view class="fileList2">
								<view class="fileList2Item" v-for="(item,index) of 2"
									@tap="toline(httpf + '/' + item.id + '?fullfilename=' + item.remark4)">
									<view class="fileList2ItemLeft">
										<image src="../../../static/doc.png" mode=""></image>
									</view>
									<view class="fileList2ItemCenter">
										<view class="">
											123123123
										</view>

										<view class="">
											qweqweqwe
										</view>
									</view>
									<view class="fileList2ItemRight" @tap="toDelete(index,'file')">
										预览
									</view>
								</view>
							</view>
						</view>


						<view class="formViewItem">
							<view class="formViewItemLeft2">
								调研成果<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">

							</view>
						</view>

						<u-form :model="form" ref="uForm">
							<u-form-item style="padding: 0 40upx;" class="form-item border-none" label=""
								labelPosition="top" prop="content">
								<u-input inputAlign="left" v-model="form.content" type="textarea" placeholder="请输入调研成果"
									:clearable="false" :height="160" :maxlength="-1" />
							</u-form-item>
						</u-form>

						<view class="fileAdd">
							<view class="fileAddTop">
								+
							</view>
							<view class="fileAddText">
								成果上传
							</view>

						</view>
					</view>
				</view> -->

			</view>




			<!-- <view class="">
				<view class="intitle">
					议题审查
				</view>

				<view class="textA">
					ASDADADADDSADASDADADADDSADASDADADADDSADASDADADADDSAD
				</view>

				<view class="formViewItem">
					<view class="formViewItemLeft">
						议事时间
					</view>
					<view class="formViewItemRight">
						123123
					</view>
				</view>

				<view class="formViewItem">
					<view class="formViewItemLeft">
						议事地点
					</view>
					<view class="formViewItemRight">
						123123
					</view>
				</view>

				<view class="formViewItem">
					<view class="formViewItemLeft">
						议事人员
					</view>
					<view class="formViewItemRight">
						123123
					</view>
				</view>
			</view> -->



			<!-- <view class="">
				<view class="intitle">
					问题审查
				</view>


				<view class="formViewItem">
					<view class="formViewItemLeft" style="color: #333333 !important;">
						是否受理
					</view>
					<view class="formViewItemRight">
						<u-radio-group v-model="value" @change="radioGroupChange">
							<u-radio @change="radioChange">
								通过
							</u-radio>
							<u-radio style="padding-left: 60upx;" @change="radioChange">
								退回
							</u-radio>
						</u-radio-group>
					</view>
				</view>

				<u-form :model="form" ref="uForm">
					<u-form-item style="padding: 0 40upx;" class="form-item border-none" label="" labelPosition="top"
						prop="content">
						<u-input inputAlign="left" v-model="form.content" type="textarea" placeholder="请输入退回理由"
							:clearable="false" :height="160" :maxlength="-1" />
					</u-form-item>
				</u-form>
			</view> -->
		</view>
		
		
		<ba-tree-picker ref="treePicker" :multiple='true' :selectParent="false" @search="searchTap" @typeTap="typeTap" @select-change="selectChange" title="选择人员"
			:localdata="zbList" valueKey="id" textKey="title" childrenKey="children" />
	</view>
</template>

<script>
	import uniFileUpload from '@/components/uni-file-uploader.vue';
	import baTreePicker from "@/components/ba-tree-picker/ba-tree-picker.vue";
	import uniParse from '@/components/uni-parse/parse.vue';
	import dateTimePicker from '@/components/uni-datetime-picker';
	import selectTree from '@/components/uni-select-tree.vue';
	import {
		mapState
	} from 'vuex';
	export default {
		components: {
			uniParse,
			baTreePicker,
			dateTimePicker,
			selectTree,
			uniFileUpload
		},
		data() {
			return {
				msystype:'',
				jggkShow:false,
				cgjbShow:false,
				issuePartPepList:[],
				issueChargePepList:[],
				form:{},
				zbList: [],
				timevalue1: '',
				timeType: 1,
				ytxsShow: false,
				ytgkShow:false,
				sqdyShow:false,
				dycgscShow:'',
				timeshow: false,
				type: '0',
				id: '',
				fileList_Info: [],
				issueAudit: {},
				issueInfo: {},
				msIssueCmt: [],
				msIssueConsult: {},
				msIssueDisclosure: {},
				msIssueLike: [],
				msIssueOpen: {},
				msIssueSurvey: {},
				clientCode: '',
				userId: '',
				ksmsxsQuery:{
					issueConsult:{
						currentUserId: '', //用户主键id
						issueId:'',//当前议题主键id
						conTime:'',//议事时间
						conPlace:'',//议事地点
						conLal:'',//议事经纬度
						conMeb:'',//议事人员，此处传空，后台赋值
					},
					currentUserId: '', //用户主键id
					consultMebArr:[]
				},
				scxscgQuery:{
					issueId:'',//议题
					currentUserId:'',//当前用户主键id
					consultResult:{
						submitBy:'',//当前用户主键id
						conResult:'',//议事成果
					},
					fileList:[]
				}
			};
		},
		computed: {
			...mapState(['userInfo', 'fileList'])
		},
		onLoad(option) {
			this.loadLogin()
			if (option.type) {
				this.type = option.type
			}
			if (option.id) {
				this.id = option.id
				this.getD()
			} 
			this.loadTeam('','dbzj')
		},
		onHide() {},
		onUnload() {},
		methods: {
			typeTap(e){
				if(e == '1'){
					this.loadTeam('','dbzj')
				}
				
				if(e == '2'){
					this.loadTeam('','dbjb')
				}
				
				if(e == '3'){
					this.zbList = []
				}
			},
			searchTap(e,v){
				if(v == ''){
					this.zbList = []
				}else{
					this.$request('/system/sys-user/tree_users', {
						clientCode: '370782',
						currentUserId: this.userId,
						name:v ? v : '',
						teamType: e
					}).then((res) => {
						let a = []
						let aa = []
						if(res.data[0].children){
							if(res.data[0].children[0].children){
								a.push(res.data[0].children[0])
							}else{
								
							}
							if(res.data[0].children[1].children){
								a.push(res.data[0].children[1])
							}else{
								
							}
							if(a.length == 0){
								this.zbList = []
							}else{
								aa = res.data
								aa[0].children = a
								this.zbList = aa
							}
						}else{
							this.zbList = []
						}
						// this.zbList = res.data;
					});
				}
				
				
			},
			scxscgBtn(){
				let that = this

				if(!this.scxscgQuery.consultResult.conResult){
					this.$msg('请输入议事成果')
					return
				}
				
				if(this.fileList.length == 0){
					this.$msg('请上传议事成果图片')
					return
				}
				
				let a = {
					issueId:that.id,
					currentUserId:this.userId,//当前用户主键id
					consultResult:{
						submitBy:this.userId,//当前用户主键id
						conResult:this.scxscgQuery.consultResult.conResult,//议事成果
					},
					fileList:this.fileList
				}
				
				
				let url = '/msIssueInfo/addConsultResult';
				this.$request(url, a, {
					load: true
				}).then((res) => {
					if (res.code == 200) {
						that.$msg('提交成功')
						setTimeout(() => {
							uni.navigateBack({
								delta: 1
							})
						}, 500)
					}
				});
				
			},
			ksmsxsBtn(){
				let that = this
				if(!this.ksmsxsQuery.issueConsult.conTime){
					this.$msg('请选择议事时间')
					return
				}
				// if(this.ksmsxsQuery.consultMebArr.length == 0){
				// 	this.$msg('请选择议事人员')
				// 	return
				// }
				if(!this.ksmsxsQuery.issueConsult.conPlace){
					this.$msg('请输入议事地点')
					return
				}
				
				let url = '/msIssueInfo/addConsult';
				that.ksmsxsQuery.issueConsult.issueId = this.id
				that.ksmsxsQuery.issueConsult.auditUser = this.userId
				that.ksmsxsQuery.issueConsult.currentUserId = this.userId
				that.ksmsxsQuery.currentUserId = this.userId
				this.$request(url, that.ksmsxsQuery, {
					load: true
				}).then((res) => {
					if (res.code == 200) {
						that.$msg('提交成功')
						setTimeout(() => {
							uni.navigateBack({
								delta: 1
							})
						}, 500)
					}
				});
				
			},
			getLoction() {
				let that = this
				uni.chooseLocation({
					success: function(res) {
						that.ksmsxsQuery.issueConsult.conPlace = res.name
						that.ksmsxsQuery.issueConsult.conLal = new String(res.longitude) + ',' + new String(res.latitude)
					}
				});
			},
			// 显示选择器
			showPicker() {
				this.loadTeam('','dbzj')
				this.$refs.treePicker._show();
			},
			//监听选择（ids为数组）
			selectChange(ids, names) {
				let namesList = names.split(',')
				let a = []
				ids.map((item,index) => {
					let aQ = {
						userId:item,
						userName:namesList[index],
					}
					a.push(aQ)
				})
				this.ksmsxsQuery.consultMebArr = a
				this.$forceUpdate()
			},
			getD() {
				let that = this
				let url = '/msIssueInfo/queryAll';
				this.$request(url, {
					id: that.id,
					clientCode: "370782"
				}, {
					load: true
				}).then((res) => {
					this.fileList_Info = res.data.fileList_Info
					this.issueAudit = res.data.issueAudit
					this.issueInfo = res.data.issueInfo
					this.msIssueCmt = res.data.msIssueCmt
					this.msIssueConsult = res.data.msIssueConsult
					this.msIssueDisclosure = res.data.msIssueDisclosure
					this.msIssueLike = res.data.msIssueLike
					this.msIssueOpen = res.data.msIssueOpen
					this.msIssueSurvey = res.data.msIssueSurvey
					
					this.issuePartPepList = res.data.issuePartPepList
					this.issueChargePepList = res.data.issueChargePepList
				});
			},
			// 显示选择器
			showPicker() {
				this.$refs.treePicker._show();
			},
			loadTeam(name,type) {
				this.$request('/system/sys-user/tree_users', {
					clientCode: '370782',
					currentUserId: this.userId,
					name:name ? name : '',
					teamType: type
				}).then((res) => {
					this.zbList = res.data;
					// this.waihotsList = res.data;
				});
			},
			timeChange({
				date,
				dt
			}, idx) {
				this.ksmsxsQuery.issueConsult[idx] = date.year + '-' + date.month2 + '-' + date.day2
			},
			ontimeChange(e) {
				console.log("123")
				this.timeType = e
				this.timeshow = true
			},
			timeconfirm(e) {
				console.log("eee", e)
			},
			loadLogin() {
				if (this.userInfo.sysUser) {
					this.clientCode = this.userInfo.sysUser.clientCode;
					this.userId = this.userInfo.sysUser.id;
				} else {
					this.$logout();
				}
			},
		}
	};
</script>

<style lang="scss" scoped>
	.detail-view {
		background-color: #ffffff;
		min-height: 100vh;
	}

	.formView {
		.formViewItem {
			display: flex;
			align-items: center;
			min-height: 120upx;
			padding: 0 40upx;
			border-bottom: 1upx solid #F6F7FB;

			.formViewItemLeft {
				flex: 1;
				text-align: left;
				color: #999999;
				font-size: 17px;
			}

			.formViewItemLeft2 {
				display: flex;
				flex: 1;
				text-align: left;
				color: #000000;
				font-size: 17px;
			}

			.formViewItemRight {
				flex: 1.5;
				text-align: right;
				color: #333333;
				font-size: 17px;

				image {
					position: relative;
					left: 280upx;
					width: 48upx;
					height: 48upx;
				}
			}
		}
		
		.formViewItem2 {
			min-height: 120upx;
			padding: 0 40upx;
			border-bottom: 1upx solid #F6F7FB;
		
			.formViewItemLeft {
				flex: 1;
				text-align: left;
				color: #999999;
				font-size: 17px;
			}
		
			.formViewItemLeft2 {
				flex: 1;
				text-align: left;
				color: #000000;
				font-size: 17px;
			}
		
			.formViewItemRight {
				flex: 1.5;
				text-align: right;
				color: #333333;
				font-size: 17px;
		
				image {
					position: relative;
					left: 280upx;
					width: 48upx;
					height: 48upx;
				}
			}
		}

		.textA {
			padding: 20upx 40upx;
			font-size: 17px;
			color: #333333;
			word-break: break-word;
		}
	}


	.fileList2 {
		padding: 0 40upx;
		background-color: #F6F7FB;

		.fileList2Item {
			display: flex;
			align-items: center;
			height: 100upx;
			padding: 10upx 0;

			.fileList2ItemLeft {
				flex: 1;
				text-align: left;
				padding: 0 10upx 0 0;

				image {
					width: 44upx;
					height: 52upx;
				}
			}

			.fileList2ItemCenter {
				padding: 0 0 0 0;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
				flex: 7;
				font-size: 15px;
				color: #333333;
			}

			.fileList2ItemRight {
				flex: 1;
				text-align: right;

				image {
					width: 32upx;
					height: 32upx;
					position: relative;
					left: 30upx;
				}
			}
		}

		.fileListItemAudio {
			display: flex;
			align-items: center;
			width: 120upx;
			height: 60upx;
			background-color: #0077FF;

			.fileListItemAudioLeft {
				flex: 1;

				.fileListItemAudioLeftImg {
					width: 24upx;
					height: 24upx;
				}
			}
		}
	}

	.intitle {
		height: 100upx;
		line-height: 100upx;
		padding: 0 40upx;
		color: #333333;
		font-size: 17px;
		font-weight: bold;
	}

	.fiexd-btm {
		position: static;
		padding: 30rpx;
	}


	.histList {
		.histListItem {
			.histListItemTop {
				display: flex;
				align-items: center;
	
				.histListItemTopLeft {
					flex: 1;
					text-align: left;
				}
	
				.histListItemTopRight {
					flex: 1;
					text-align: right;
					padding-right: 40upx;
				}
			}
		}
	}

	.histListEdit {
		.histListItem {
			.histListItemTop {
				display: flex;
				align-items: center;

				.histListItemTopLeft {
					flex: 1;
					text-align: left;
				}

				.histListItemTopRight {
					flex: 1;
					text-align: right;
					padding-right: 40upx;
				}
			}
		}
	}

	.fileAdd {
		padding-left: 40upx;

		.fileAddTop {
			width: 120upx;
			height: 120upx;
			text-align: center;
			background-color: #F6F7FB;
			font-size: 26px;
			color: #999999;
			line-height: 120upx;
		}

		.fileAddText {
			font-size: 14px;
			color: #666666;
		}
	}
</style>
